package com.shtel.paas.monitorcenter.view.dispaly.common.ztree.controller;

import com.shtel.paas.monitorcenter.view.dispaly.common.ztree.service.QueryViewDisplayZtreeService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;

/**
 * @Description:  视图展示模块ztree查询的公共类
 * @author: zhangyy
 * @date: 2018年7月10日 上午9:03:31
 * @version V1.0
 */

@MapperScan("com.shtel.paas.monitorcenter.view.dispaly.common.ztree.mapper")
// mybatis存储库类的包路径
@RestController
public class QueryViewDisplayZtreeController {

    @Autowired
    private QueryViewDisplayZtreeService queryViewDisplayZtreeService;
    /**
     * 视图展示模块ztree查询的公共方法
     */
    @GetMapping("/queryViewDisplayZtree")
    public Map<String, Object> queryViewDisplayZtree(String monitorCenterHostInfomationType) {
        return queryViewDisplayZtreeService.queryViewDisplayZtree(monitorCenterHostInfomationType);
    }
}
